#ifndef __LOG__
#define __LOG__

// 全局变量,日志文件地址
extern const char *log_addr;

// 用宏函数调用mylog函数
#define MYLOG(msg) {mylog(msg,__FILE__,__FUNCTION__,__LINE__);}
int mylog(char *msg, const char *filePath, const char *func, int line);

#define ERROR_CHECK(ret,num,msg) {if(ret==num)error_check(msg);}
int error_check(const char *msg);

#endif
